﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Eatime.Entitys
{
    class ShopFeedback : INotifyPropertyChanged
    {
        private Guid _id = new Guid();
        public Guid Id
        {
            get { return _id; }
            set
            {
                if (value != _id)
                {
                    _id = value;
                    NotifyPropertyChanged("Id");
                }
            }
        }

        private int _shopFeedbackId = 0;
        public int ShopFeedbackId
        {
            get
            {
                return _shopFeedbackId;
            }
            set
            {
                if (value != _shopFeedbackId)
                {
                    _shopFeedbackId = value;
                    NotifyPropertyChanged("ShopFeedbackId");
                }
            }
        }

        private string _content;
        public string Content
        {
            get
            {
                return _content;
            }
            set
            {
                if (value != _content)
                {
                    _content = value;
                    NotifyPropertyChanged("Content");
                }
            }
        }

        private DateTime _created = DateTime.Now;
        public DateTime Created
        {
            get
            {
                return _created;
            }
            set
            {
                if (value != _created)
                {
                    _created = value;
                    NotifyPropertyChanged("Created");
                }
            }
        }

        private string _status;
        public string Status
        {
            get
            {
                return _status;
            }
            set
            {
                if (value != _status)
                {
                    _status = value;
                    NotifyPropertyChanged("Status");
                }
            }
        }

        private string _contact;
        public string Contact
        {
            get
            {
                return _contact;
            }
            set
            {
                if (value != _contact)
                {
                    _contact = value;
                    NotifyPropertyChanged("Contact");
                }
            }
        }

        private int _shopId = 0;
        public int ShopId
        {
            get
            {
                return _shopId;
            }
            set
            {
                if (value != _shopId)
                {
                    _shopId = value;
                    NotifyPropertyChanged("ShopId");
                }
            }
        }

        private string _deviceUniqueId;
        public string DeviceUniqueId
        {
            get { return _deviceUniqueId; }
            set
            {
                if (value != _deviceUniqueId)
                {
                    _deviceUniqueId = value;
                    NotifyPropertyChanged("DeviceUniqueId");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string info)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(info));
            }
        }
    }
}
